package com.hziee.mail.service;

import com.hziee.mail.dao.EvalRepository;
import com.hziee.mail.util.TimeUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author ZX
 */
@Service
public class EvalService {

    @Autowired
    private EvalRepository evalRepository;

    public List<Map> showEval(String goodsId) {
        List<Map> list = evalRepository.showEval(goodsId);
       /* for(int i = 0; i < list.size(); i++){
            list.get(i).put("time", TimeUtil.stampToDate(String.valueOf(list.get(i).get("time")))
            );
        }*/
        return list;
    }
}
